Skip to content

feat: Add @flue/runtime instrumentation#2037

Merged
Luca Forstner (lforst) merged 10 commits into
mainfrom
lforst/flue-instrumentation
May 22, 2026
Merged

feat: Add @flue/runtime instrumentation#2037
Luca Forstner (lforst) merged 10 commits into
mainfrom
lforst/flue-instrumentation

Conversation

@lforst
Copy link
Copy Markdown
Member

@lforst Luca Forstner (lforst) commented May 21, 2026

Fixes #2023

Screenshot 2026-05-22 at 12 59 50

@lforst Luca Forstner (lforst) marked this pull request as ready for review May 21, 2026 13:33
…tation

# Conflicts:
#	js/src/instrumentation/braintrust-plugin.ts
#	js/src/instrumentation/registry.ts
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you share an example trace or screenshot?

"braintrust": minor
---

feat: Add `@flue/runtime` instrumentation
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should document what this instruments here, and the new public API added (wrapFlueSession and wrapFlueContext).

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think I will do this in a curated changelog entry. You know with an "Important Changes" section 😂 iykyk

…tation

# Conflicts:
#	js/src/auto-instrumentations/configs/all.ts
#	js/src/instrumentation/braintrust-plugin.ts
#	js/src/instrumentation/registry.ts
@lforst
Copy link
Copy Markdown
Member Author

Still a few todos but in a relatively good spot:

  • Manual wrapping needs to track input on turn spans
  • Compaction nesting is slightly off
  • Task nesting is slightly off

@lforst Luca Forstner (lforst) merged commit 304bec2 into main May 22, 2026
47 checks passed
@lforst Luca Forstner (lforst) deleted the lforst/flue-instrumentation branch May 22, 2026 11:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[bot] Flue agent framework (@flue/runtime) not instrumented — no tracing for agent sessions, prompts, skills, tasks, or tools

2 participants